include ../Makefile.shared

define PROJ_mtlearn
  SOURCES =   mtlearn.ml
  RESULT = mtlearn
endef
export PROJ_mtlearn

# If the environment does not define subprojects to handle,
# then set a default
ifndef SUBPROJS
  export SUBPROJS = mtlearn
endif


export LIBS=ext str unix data expat mn bn circuit lbfgs

# Default target to use
all: nc
	cp $(SUBPROJS) $(BINDIR)

# Catch-all target will be applied to all subprojects automatically
%:
	@$(MAKE) -f $(OCAMLMAKEFILE) subprojs SUBTARGET=$@
